#include <func.h>
void sigFunc(int signum)
{
    if(signum == 3)
    {
        printf("                               befor sleep:3\n");
        sleep(2);
        printf("                                 after sleep:3\n");
        return;
    }
    printf("  before sleep:2\n");
    sleep(2);
    printf("    after sleep:2\n");
}
int main(int argc,char **argv)
{
    signal(SIGINT,sigFunc);
    signal(SIGQUIT,sigFunc);
    while(1);
    return 0;
}

